package com.zjhd.sealcutting.service;

import com.zjhd.sealcutting.domain.EntryInfo;
import com.zjhd.sealcutting.param.EntrySearchQuery;
import com.zjhd.sealcutting.utils.response.ResponseResult;
import com.zjhd.sealcutting.vo.SearchResult;

import java.util.List;

/**
 * TODO 词条管理
 *
 * @author wangchao
 * @version 1.0
 * @date 2020/11/26 17:41
 */
public interface EntryInfoService {

    /**
     * TODO  分页查询词条
     * @author wangchao
     * @date 2020/11/26 17:43
     * @param
     * @return
     */
    SearchResult queryEntryParamlist(EntrySearchQuery param)throws Exception;

    /**
     * TODO  根据用户查询词条
     * @author wangchao
     * @date 2020/12/14 11:02
     * @param
     * @return
     */
    List<EntryInfo> queryByUserNameEntry(Integer userId)throws Exception;

    /**
     * TODO  新增词条
     * @author wangchao
     * @date 2020/12/16 9:41
     * @param
     * @return
     */
    ResponseResult insertEntry(EntryInfo entryInfo)throws Exception;

    /**
     * TODO  修改词条
     * @author wangchao
     * @date 2020/12/16 9:42
     * @param
     * @return
     */
    ResponseResult updateEntry(EntryInfo entryInfo)throws Exception;

    /**
     * TODO  查询词条详情
     * @author wangchao
     * @date 2020/12/16 9:44
     * @param
     * @return
     */
    EntryInfo queryByIdEntry(Integer id)throws Exception;

    /**
     * TODO  删除词条
     * @author wangchao
     * @date 2020/12/16 9:44
     * @param
     * @return
     */
    boolean delEntry(Integer id)throws Exception;
}
